package ooday01;

public class CarDemo {
    String brank;
    String color;
    double price;
    int kilometre;
    CarDemo(String brank,String color,double price,int kilometre){
        this.brank=brank;
        this.color=color;
        this.price=price;
        this.kilometre=kilometre;
    }
    void star(){
        System.out.println("这辆价值"+price+"的"+color+brank+"跑了"+kilometre+"公里");
    }
}
